import caches from '@/config/caches.js'
const state = {
	isLogin: uni.getStorageSync(caches.ISLOGIN),
	token: uni.getStorageSync(caches.ACCESS_TOKEN), //业务员token
	customer_token: uni.getStorageSync(caches.CUSTOMER_TOKEN), // 客户token
	health_platform_token: uni.getStorageSync(caches.HEALTH_PLATFORM_TOKEN), //健康平台token
	benefit_card_token: uni.getStorageSync(caches.Benefit_Card_TOKEN), //权益卡token
	phone: uni.getStorageSync(caches.PHONE),
	loginCode: uni.getStorageSync(caches.LOGIN_CODE), //登录的code
	phoneNumberDetail: uni.getStorageSync(caches.PHONE_NUMBER_DETAIL),
	// wxLoginRes: uni.getStorageSync(caches.WX_LOGIN_RESULT),
	// userProfileData: null, //uni.getUserProfile获取的数据
	showGetPhoneNumber: false, //是否打开全局的获取手机号的弹窗
	showChooseAvatar: false, //是否打开全局的设置头像
	userInfo: uni.getStorageSync(caches.USER_INFO),
	userInfoHealthPlatform: uni.getStorageSync(caches.USER_INFO_HEALTH_PLARFORM),
	authority: uni.getStorageSync(caches.AUTHORITY) || "customer",
	fromshareId: uni.getStorageSync(caches.FROMSHAREID),
	fromshareChickenId: uni.getStorageSync(caches.FROMSHARECHICKENID),
	fromvipshareId: uni.getStorageSync(caches.FROMVIPSHAREID),
	memberFlag: uni.getStorageSync(caches.MEMBERFLAG),
	tendId: uni.getStorageSync(caches.TENDID),
	reportToken: uni.getStorageSync(caches.REPORT_TOKEN),
	reportInfo: uni.getStorageSync(caches.REPORT_INFO),
	inviteLogin: {},
	showVideo: true,
	addressList: [],
}
export default state